package com.jy.rhin.model.body.feiyong;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Data;

import java.util.List;

/**
 * @Author 姚俊
 * @Date 2023/2/9 15:40
 * @Description 费用
 */
@Data
public class ZhuYuanFeiYong {
//    //住院费用分类名称
//    @XPath(path = "/entry/organizer/component/observation/code[@code='DE07.00.009.00'][@codeSystem='2.16.156.10011.2.2.1']/../value/text()"
//            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE07_00_009_00))
//    String zhuYuanFYFLMC;
//    //住院费用分类代码
//    @XPath(path = "/entry/organizer/component/observation/code[@code='DE07.00.008.00'][@codeSystem='2.16.156.10011.2.2.1']/../value"
//            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE07_00_008_00))
//    CodeObject zhuYuanFYFL;

    //费用条目list
    List<FeiYongTM> feiYongTMList;

    //住院费用金额
    @XPath(path = "/entry/observation/code[@code='DE07.00.010.00'][@codeSystem='2.16.156.10011.2.2.1']/../value/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE07_00_010_00))
    String zhuYuanFYJE;
    //住院费用结算方式代码
    @XPath(path = "/entry/observation/code[@code='DE07.00.006.00'][@codeSystem='2.16.156.10011.2.2.1']/../value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE07_00_006_00))
    CodeObject zhuYuanFYJSFS;
    //医疗付款方式代码
    @XPath(path = "/entry/observation/code[@code='DE07.00.007.00'][@codeSystem='2.16.156.10011.2.2.1']/../value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE07_00_007_00))
    CodeObject yiLiaoFKFS;
}
